home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-01
/
pdcurs21.zip
/
PORTABLE.ZIP
/
DELAY_OU.C
< prev
next >
Wrap
Text File
|
1992-11-21
|
2KB
|
60 lines
#define CURSES_LIBRARY 1
/*#define NEEDS_OS2 1*/
#include <curses.h>
#undef delay_output
#if defined(DOS) && defined(MSC)
#include <time.h>
#endif
#ifndef NDEBUG
char *rcsid_delay_ou = "$Header: c:/curses/portable/RCS/delay_ou.c%v 2.0 1992/11/15 03:28:46 MH Rel $";
#endif
#ifdef OS2
APIRET APIENTRY DosSleep(ULONG ulTime);
#endif
/*man-start*********************************************************************
delay_output() - cause short delay
X/Open Description:
Insert ms millisecond pause in output. On some systems, this
has no effect.
PDCurses Description:
This routine relies on the compiler's delay() routine and
provides this x millisecond granularity to the application.
X/Open Return Value:
The delay_output() function returns OK on success and ERR on error.
PDCurses Errors:
If this function is a nop, then an ERR is returned.
Portability:
PDCurses int delay_output( int ms );
X/Open Dec '88 int delay_output( int ms );
BSD Curses
SYS V Curses
**man-end**********************************************************************/
int delay_output( int ms )
{
#if defined(TC) && defined(DOS)
delay( ms );
return( OK );
#endif
#if defined(OS2)
DosSleep(ms);
return( OK );
#endif
#if defined(DOS) && defined(MSC)
PDC_usleep((clock_t)ms);
return( OK );
#endif
}